function submitLogin()
{
  // Check if password is OK. We don't support passwords shorter than 7 symbols
  var pf = $("#password");
  var p = pf.val();
  if(p.length <= 6)
  {
    return false;
  }

  // Disable OK button, change text
  var b = $("#okButton");
  b.attr("disabled", "true");
  b.val(LOC_LOGIN_ONEMOMENT);

  // Retrieve nonce, clean password
  var nf = $("#nonce");
  var salt = nf.val();
  pf.val("")

  // Concat nonce and password, hash and submit the hidden field
  $("#saltedHash").val(hex_sha1(p + salt));

  return true;
}